package cn.iocoder.yudao.module.member.controller.admin.activation.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 激活码管理新增/修改 Request VO")
@Data
public class ActivationSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23502")
    private Long id;

    @Schema(description = "激活码")
    private String activationCode;

    @Schema(description = "有效期开始", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期开始不能为空")
    private LocalDateTime beginTime;

    @Schema(description = "有效期结束", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期结束不能为空")
    private LocalDateTime endTime;

}